<?php
/**
 * Created by PhpStorm.
 * User: jixu
 * Date: 17-7-24
 * Time: 上午11:17
 * BASE admin control
 */
define('BASE_PATH',dirname(dirname(dirname( __FILE__ ))).'/wp-admin');
require_once( BASE_PATH . '/admin.php' );

class adminControl{
    function __constructor(){
        $op = trim($_REQUEST['op']);
        if(empty($op)){
            $op = 'index';
        }
        $m = $op.'op';
        if(method_exists($this,$m)){
            $this->$m();
        }
        Language::read('common,layout');
    }
}